package start.util;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class CDATASectionAdapter extends XmlAdapter<String, String> {

    @Override
    public String unmarshal(String v) throws Exception {
        return v;
    }

    @Override
    public String marshal(String v) throws Exception {
        if(v != null){
            return "<![CDATA["+v+"]]>";
        }
        return null;
    }

}